package com.kang.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.kang.dao.SupplierAnnexMapper;
import com.kang.pojo.SupplierAnnex;
import com.kang.service.SupplierAnnexService;

/**
 * 供应商附件服务层实现类
 * 
 * @author zs614
 *
 */
@Service
public class SupplierAnnexServiceImpl implements SupplierAnnexService {
	/**
	 * 供应商附件持久层
	 */
	@Resource
	private SupplierAnnexMapper dao;

	/**
	 * 查询供应商所有附件
	 * 
	 * @param supplierannexid
	 *            供应商ID
	 * @return
	 */
	@Override
	public List<SupplierAnnex> listById(Integer supplierannexid) {

		return dao.listById(supplierannexid);
	}

	/**
	 * 删除供应商附件
	 * 
	 * @param supplierannexid
	 *            附件ID
	 * @return
	 */
	@Override
	public int deleteByPrimaryKey(Integer supplierannexid) {

		return dao.deleteByPrimaryKey(supplierannexid);
	}

	/**
	 * 新增供应商附件
	 * 
	 * @param record
	 *            供应商附件实体类
	 * @return
	 */
	@Override
	public int insert(SupplierAnnex record) {

		return dao.insert(record);
	}

	/**
	 * 新增供应商附件
	 * 
	 * @param record
	 *            供应商附件实体类
	 * @return
	 */
	@Override
	public int insertSelective(SupplierAnnex record) {

		return dao.insertSelective(record);
	}

	/**
	 * 通过ID查询供应商附件
	 * 
	 * @param supplierannexid
	 *            供应商附件ID
	 * @return
	 */
	@Override
	public SupplierAnnex selectByPrimaryKey(Integer supplierannexid) {

		return dao.selectByPrimaryKey(supplierannexid);
	}

}
